home *** CD-ROM | disk | FTP | other *** search
- Subject: Archiving question
- Sent: 3/16/96 8:26 PM
- Received: 3/18/96 7:01 AM
- From: Arni McKinley, motion@nbn.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Let's suppose that I keep a pointer to an object, foo, in a class that I am
- archiving:
-
- class FW_CLASS_ATTR CoolStuff
- {
- MyClass *foo;
- etc
- }
-
- When I write this CoolStuff out to the archive, it looks something like this:
-
- void CoolStuff::Flatten( FW_CWritableStream& archive )
- {
- FW_WRITE_DYNAMIC_OBJECT( archive, foo, MyClass );
- }
-
-
- What happens if foo is NULL? Will FW_READ_DYNAMIC_OBJECT recognize it as such?
-
- Arni
-
-